import React from 'react'
import {BrowserRouter, Navigate, Route, Routes} from 'react-router-dom';
import Home from "@/pages/Home";
import Test from "@/pages/Test";
import FileTree from "@/pages/FileTree";

const App = () => {

    return (
        <div>
            <BrowserRouter>
                <Routes>
                    <Route path="/" element={<Home/>}/>
                    <Route path="/test" element={<Test/>}/>
                    <Route path="/FileTree" element={<FileTree/>}/>
                    <Route path="*" element={<Navigate to="/"/>}/>
                </Routes>
            </BrowserRouter>
        </div>
    )
}

export default App
